package com.emar.adx.yiqifa.java;

import com.emar.adx.yiqifa.util.ApplicationUtil;
import com.emar.adx.yiqifa.util.DateUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by xiaoliang on 2016/6/3.
 * 2016/6/3 10:26
 *
 * @Version 1.0
 */
public class TestMain {

    public static final Logger logger = LoggerFactory.getLogger(TestMain.class);

    public static void main(String[] args) {
//        String s = ApplicationUtil.getRealPath("/temp");
//        String s1 = ApplicationUtil.getRootPath();
        String s2 = TestMain.class.getResource("").getPath();
//        logger.debug(s1);
        logger.debug(s2);

        String re = "callback_url=http://track.oneway.mobi/getdata.jsp?tid=001380A2800941465565395281344+++onewaycode=y0io5730r5, callback_result=null, recalled=0,idfa=F689E90F-AB14-4471-B2D2-D06CB5428684";
        if(re.length()>10){
            re = re.substring(0,10);
        }

        logger.debug(re);

        List<Long> ids = new ArrayList<Long>();
        ids.add(123L);
        ids.add(123454L);

        System.out.print(ids.toString());
        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
        String d1 = "2016-11-11 23:00:22";
        String s1 = sdf.format(d1);

        logger.debug(s1);

    }
}
